# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dateutils
pkgver=0.4.11
pkgrel=0
pkgdesc="Utilities for fast date-time calculations and conversion"
url="https://www.fresse.org/dateutils/"
arch="all"
license="BSD-3-Clause"
makedepends="m4 texinfo automake autoconf linux-headers"
subpackages="$pkgname-doc"
source="https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-static=no
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
601fa8197acdb68fe0688aed3fa2ba2fcf66b9a8ad23a0c7cb816a2cba9c645854ec8715a2127e02294cc068f63b09d0596eee60e151a8ad0edff22f54ec9d7a  dateutils-0.4.11.tar.xz
"
